package com.shhic.itsed.mws.deviceintf;

import java.util.Set;

/**
 * 标签读取结果
 * @author 张文硕
 *
 */
public class RawTagReadResult extends RawTagOperationResult{

	private static final long serialVersionUID = 1L;

	private String inventoryResult;	//清点结果
	private Set<RawTagField> tagFieldsReadResult;

	
	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((inventoryResult == null) ? 0 : inventoryResult.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RawTagReadResult other = (RawTagReadResult) obj;
		if (inventoryResult == null) {
			if (other.inventoryResult != null)
				return false;
		} else if (!inventoryResult.equals(other.inventoryResult))
			return false;
		return true;
	}

	public String getInventoryResult() {
		return inventoryResult;
	}

	public void setInventoryResult(String inventoryResult) {
		this.inventoryResult = inventoryResult;
	}

	public Set<RawTagField> getTagFieldsReadResult() {
		return tagFieldsReadResult;
	}

	public void setTagFieldsReadResult(Set<RawTagField> tagFieldsReadResult) {
		this.tagFieldsReadResult = tagFieldsReadResult;
	}

	@Override
	public String getTagIdentifier() {
		return inventoryResult;
	} 
	
}
